const Client = require("ftp");
const args = process.argv.slice(2);
const pwd = args[0];

let c = new Client();
c.on("ready", () => {
  c.cwd('novalai',(err)=>{if(err)throw err;})
  c.put("/home/b8313/Desktop/download.png", "up.png", (err) => {
    if (err) {
      throw err;
    }
    c.end();
  });


});

c.connect({
  host: "server.masaikk.xyz",
  user: "b8313",
  password: pwd
});




